-- GENERATED SPELL FOR [Defias Bodyguard] --


function spell0_6866(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6866', 637, 1)
end

function spell1_6866(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6866', 5284, 1)
end

function Sorts_6866(pUnit, Event)
local choix_sorts_6866 = math.random(0, 1)
if choix_sorts_6866 == 0 then
pUnit:RegisterEvent('spell0_6866', 1, 1)
end
if choix_sorts_6866 == 1 then
pUnit:RegisterEvent('spell1_6866', 1, 1)
end
end

function mob6866_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6866', math.random(1500, 3000), 1)
end

function mob6866_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6866_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6866_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6866, 1, 'mob6866_Action')
RegisterUnitEvent(6866, 2, 'mob6866_Leave')
RegisterUnitEvent(6866, 3, 'mob6866_Kill')
RegisterUnitEvent(6866, 4, 'mob6866_Die')
